package com.kc.business.domain;

import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@Table(name = "kc_scenic_site_video")
public class BizScenicSiteVideo {
    /*主键id*/
    @Id
    private Integer id;
    /*创作作者id*/
    private Integer userId;
    /*创作作者名称*/
    @Transient
    private String nickname;
    /*景点id*/
    private Integer siteId;
    /*景点名称*/
    @Transient
    private String siteName;
    /*视频标题*/
    private String title;
    /*视频内容*/
    private String content;
    /*视频封面图*/
    private String videoImg;
    /*视频url*/
    private String video;
    /*视频时长*/
    private Integer videoTime;
    /*创作时间*/
    @Transient
    private String videoCreateTime;
    /*状态*/
    private Integer status;
    /*封面图宽高*/
    private String videoImgAttr;
    /*删除标记*/
    private Integer isDeleted = 0;
    public BizScenicSiteVideo(){}
    public BizScenicSiteVideo(Integer userId, String nickname, Integer siteId, String siteName, String title, String content, String videoImg, String video, Integer videoTime, String videoCreateTime, Integer status) {
        this.userId = userId;
        this.nickname = nickname;
        this.siteId = siteId;
        this.siteName = siteName;
        this.title = title;
        this.content = content;
        this.videoImg = videoImg;
        this.video = video;
        this.videoTime = videoTime;
        this.videoCreateTime = videoCreateTime;
        this.status = status;
    }
}
